import React, {PureComponent, Fragment} from 'react';
import List from './List';
import {connect} from 'dva';
import {
  Button,
  Tag,
  Modal,
  Form,
  message,
  Table,
  Radio,
  Input,
  Icon
} from 'antd';

const FormItem = Form.Item;
const { confirm } = Modal;

const RadioButton = Radio.Button;

const RadioGroup = Radio.Group;

@connect(({mechanical, loading}) => ({
  mechanical,
  loading: loading.models.mechanical,
}))
@Form.create()
class BasicList extends PureComponent {
  constructor(props) {
    super(props);
    this.permissions = JSON.parse(sessionStorage.getItem('permissions'));
    this.state = {
    };
  }


  render() {
    const that=this;
    const {
      mechanical: {detail},
    } = this.props;
    return <Fragment>
      {
        detail.isDetail?<List />: <List />
      }
    </Fragment>
  }
}

export default BasicList;
